package com.uqbar.game.scene;

import com.uqbar.game.Spacecraft;
import com.uqbar.game.components.extra.BackgroundComponent;
import com.uqbar.game.components.extra.GameOver;
import com.uqbar.game.components.extra.Score;
import com.uqbar.vainilla.GameComponent;
import com.uqbar.vainilla.GameScene;

public class EndScene extends GameScene{
	
	private PlayScene playScene;
	private Spacecraft spacecraft;
	private GameComponent<GameScene> component;
	
	public EndScene(PlayScene playScene, GameComponent<GameScene> component, Spacecraft spacecraft) {
		this.playScene = playScene;
		this.component = component;
		this.spacecraft = spacecraft;
		initializeResources();
	}
	
	public void initializeResources(){
		BackgroundComponent backgroundComponent = new BackgroundComponent();
		Score score = this.playScene.getScore();
		score.setX(350);
		score.setY(135);

		this.addComponent(backgroundComponent);
		this.addComponent(this.component);
		this.addComponent(score);
	}
}
